<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>list_the_BDs</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>  
  <body>
  	<s:include value="/include/header.jsp"></s:include>
  	<s:if test="%{#session.userId != null}">
  	<table>
	  	<tr>
		  	<td><s:text name="Bid/Offer" /></td>
		  	<td><s:text name="Transaction" /></td>
		  	<td><s:text name="Create Date" /></td>
	  	</tr>
    <s:iterator value ="bidList"  status="stat" >
		<tr>
		<td>
			<a href="<s:url includeParams="none" namespace="/" action="user/details_bid" >
	  					<s:param name="bdId"><s:property value="BId" /></s:param></s:url>">
						<s:property value="BDescription" />
			</a>
		</td>
  		<td>
  			<s:property value="transaction.trDescription" />
  		</td>
  		<td>
  			<s:property value="BDate" />
  		</td>
  		</tr>
	</s:iterator>
	</table>
	</s:if>
  </body>
</html>
